namespace OracleInternal.SqlAndPlsqlParser.LocalParsing
{
	internal class OracleLpRelativeTextFragment : OracleLpTextFragment
	{
		protected OracleLpTextFragment m_vRelativeFragment;

		protected int m_vAbsoluteStart;

		public override OracleLpTextFragment RelativeFragment => m_vRelativeFragment;

		public override int Start => m_vAbsoluteStart;

		public OracleLpRelativeTextFragment(OracleLpTextFragment fragment, int relativeStart, int length)
			: base(null, relativeStart, length)
		{
			m_vRelativeFragment = fragment;
			m_vStart = relativeStart;
			m_vLength = length;
			m_vAbsoluteStart = relativeStart + fragment.Start;
			m_vReferenceText = fragment.ReferenceText;
		}
	}
}
